#ifndef     __CONN_UART_H
#define     __CONN_UART_H

#include "../utils/byte_view.h"
#include "../rtx/rtx_os.h"

void conn_uart_init();
osStatus_t conn_uart_poll(ByteView *bw, uint32_t timeout);
void conn_uart_write(const uint8_t *buf, uint16_t len);

void conn_printf(const char *fmt, ...);

void conn_write_simple_res(uint8_t seq, uint8_t cmd, uint8_t ec);

#endif
